<script>
$(document).ready(function(){
    $('#cat a.current').parent().find('ul').show();
});
</script>
<div class="box">
    <div class="title_left">
        <div class="title_left_text"><?php echo $heading_title; ?></div>
    </div>
    <div class="noidung">
        <div class="left_text">
            <ul id='cat'>
                <?php foreach ($categories as $category) { ?>
                <li>
                    <?php if ($category['category_id'] == $category_id) { ?>
                    <a href="<?php echo $category['href']; ?>" class="current"><?php echo $category['name']; ?></a>
                    <?php } else { ?>
                    <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
                    <?php } ?>
                    <?php if ($category['children']) { ?>
                    <ul>
                        <?php foreach ($category['children'] as $child) { ?>
                        <li>
                            <?php if ($child['category_id'] == $child_id) { ?>
                            <a href="<?php echo $child['href']; ?>" class="current"> - <?php echo $child['name']; ?></a>
                            <?php } else { ?>
                            <a href="<?php echo $child['href']; ?>"> - <?php echo $child['name']; ?></a>
                            <?php } ?>
                        </li>
                        <?php } ?>
                    </ul>
                    <?php } ?>
                </li>
                <?php } ?>
             </ul>
        </div>

    </div>
</div>
<div class="cleaner"></div>

<!--<div class="box">
    <div class="title_left">
        <div class="title_left_text"><?php echo $heading_title; ?></div>
    </div>
    <div class="noidung">
        <div class="left_text">
            <ul>
                <li><a href="#" class="current"><h8>Bình ga</h8></a></li>
                <li><a href="#"><h8>Bếp ga</h8></a></li>
                <li><a href="#"><h8>Dầu nhớt</h8></a></li>
                <li><a href="#"><h8>Vé máy bay nội địa</h8></a></li>
                <li><a href="#"><h8>Sim thẻ điện thoại</h8></a></li>
                <li><a href="#"><h8>Vé máy bay quốc tế</h8></a></li>
            </ul>
        </div>

    </div>
</div>
<div class="cleaner"></div>-->